# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=video-trimmer
pkgver=0.9.0
pkgrel=0
pkgdesc="Trim videos quickly"
url="https://gitlab.gnome.org/YaLTeR/video-trimmer"
# s390x, riscv64: blocked by blueprint-compiler
# loongarch64: blocked by libc crate
arch="all !s390x !riscv64 !loongarch64"
license="GPL-3.0-or-later"
depends="gst-libav"
makedepends="
	blueprint-compiler
	cargo
	desktop-file-utils
	gtk4.0-dev
	libadwaita-dev
	meson
	"
subpackages="$pkgname-lang"
source="https://gitlab.gnome.org/YaLTeR/video-trimmer/-/archive/v$pkgver/video-trimmer-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"


build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
f3e19c5545e51a5df12011f3075d79d9d7378799360aff2983278fd79bc2326aab9013eb315d8ad48cbfd6546aeb7836230a41b7eacaa0cab720b482821ebc13  video-trimmer-v0.9.0.tar.gz
"
